package com.chixing.day05;

import com.sun.javaws.IconUtil;

public class Work {
    public static void main(String[] args) {
        int[]a={11,22,33,44,55};
        int[]b={13,14,23,24,35};
        int[] c=new int[a.length+b.length];
        int i=0;int j=a.length;
        for(i=0;i<a.length;i++){
              if (i<a.length){
                   c[i]=a[i];
                   c[j++]=b[i];
              }
        }
        selectSort(c);

        for (int num : c) {
            System.out.print(num + " ");
        }

    }
    public static int[] selectSort(int[] c){
        for(int i =0;i<c.length-1;i++){
            int min =  i ;
            for(int j = i+1;j<c.length;j++) {
                if(c[i] > c[j]){
                    int temp = c[i];
                    c[i] = c[j];
                    c[j] = temp;

                }
            }
        }
return c;
    }




}
